package com.leyou;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = {"com.leyou.item", "com.leyou.common.advice"})
@MapperScan("com.leyou.item.mapper")  //与compnent 不同
public class ItemServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemServiceApplication.class, args);
        System.out.println("item-service服务启动了");
    }
}
